package com.sf.marathon.soul.service;

import com.sf.marathon.soul.domain.ProMarketBannerImg;
import com.sf.marathon.soul.dao.ProMarketBannerImgMapper;
import com.sf.marathon.soul.service.ProMarketBannerImgService;
import com.sf.marathon.soul.core.base.BaseService;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 专业市场推广图片 服务实现类
 * </p>
 *
 * @author mokeo
 * @since 2017-12-15
 */
@Service
public class ProMarketBannerImgService extends BaseService<ProMarketBannerImgMapper, ProMarketBannerImg> {

    public List<ProMarketBannerImg> findByMarketId(Long marketId){
        Map<String,Object> query = new HashMap<>();
        query.put("market_id",marketId);
        return super.baseDao.selectByMap(query);
    }
}
